# -*- encoding=utf8 -*-

__author__ = "code哥"
from sanic.blueprints import Blueprint
from sanic.views import HTTPMethodView
from sanic import response
from sanic_openapi import doc
from conf.app_list import apps_info

blueprint = Blueprint(__name__, '/api')


class APPList(HTTPMethodView):

    @doc.summary("获取支持的app")
    def post(self, request):
        return response.json({'code': 0, 'data': apps_info})


blueprint.add_route(APPList.as_view(), '/app_list', strict_slashes=True)
